.categoryBar{
    ul{
        box-sizing: border-box;
        display: flex;
        width: 2.9rem;
        height: 0.6rem;
        border:solid 0.01rem white ;
        border-radius: 0.3rem;
        margin: 0;
        padding: 0;
        position: relative;
        &::before{
            content:"";
            width: 50%;
            height: 100%;
            background:white;
            border-radius: 0.3rem;
            position: absolute;
            left: 0;
            top: 0;
            transition: 0.3s;
        }
        li{
            list-style: none;
            flex: 1;
            text-align: center;
            line-height: 0.58rem;
            font-size: 0.28rem ;
            z-index: 1;
        } 
        .active{
            color:#ee7530;
        }
    }
    .left::before{
        transform: translateX(0);
       }
       .right::before{
        transform: translateX(100%);
        }
}